package com.administrator.cloudapplication.app;


import android.app.Application;

import com.administrator.cloudapplication.tools.HttpUtils;

import java.util.concurrent.TimeUnit;

import okhttp3.OkHttpClient;



/**
 * Created by Administrator on 2017/4/12.
 */

public class MyApplication extends Application {
    public void onCreate(){
        super.onCreate();
        OkHttpClient okHttpClient=new OkHttpClient.Builder().connectTimeout(200000L, TimeUnit.MILLISECONDS)
                .readTimeout(200000L,TimeUnit.MILLISECONDS).build();
        HttpUtils.initClient(okHttpClient,getApplicationContext());
    }
}
